package com.wuchao.spring.iocPlus.annotation;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wuchao66
 * @Date 2022/9/27 15:37
 * @PackageName:com.wuchao.spring.aopPlus.annotation
 * @ClassName: UserDao
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
@Service("UserDao151")
public class UserDao151 {
    /*public Dao getDao() {
        return dao;
    }

    public void setDao(Dao dao) {
        this.dao = dao;
    }*/
    @Resource//自动注入 最好是名字要11对应
    /*@Autowired*/
   /* @Qualifier("")*/
    private Dao151 dao;
    public  void show(){
        dao.save();
    }
}
